Constants Node
The Constants Node
gets a trigger to the Input Port
, declares values of elements, objects, or arrays, and sends the values to the Output Ports
.
The example above shows the Constants Node
defining the following values:
- integer number equal
42
; - float number equal
3.1415
; - boolean value
true
; - object having 2 key-value pairs:
{"XYZ" : "111", "ABC" : "abc"}
; - string getting value
Hello, World!
; - array having 3 key-value elements
{"ABC" : "1000", "DEF" : "0", "GHI" : "10"}
.
The number of Output Ports
of the Constants Node
in not limited.
Click the +
button in the Sidebar
to add new elements.
The following examples demonstrate how different values assigning to the boolean Output Port
of the Constants Node
are treated:
False
orfalse
are treated asFalse
;True
ortrue
are treated asTrue
;empty
is treated asFalse
;0
is treated asFalse
.Hello, World!
is treated asTrue
.